<%@ page language="java" contentType="application/xhtml+xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>
<u:html-top title="Aliquots: Batch-update"/>
<c:if test="${userHasWritePrivileges }">
<form method="POST" action="/organifooyi/db/aliquot/batch-update">
<input type="hidden" name="_second" value="1"/>
<c:forEach var="aliquot" items="${aliquots}">
<input type="hidden" name="aliquot_id" value="${aliquot.id}"/>
</c:forEach>

<table class="entityList">
<thead>
<tr>
	<th>Name</th>
	<th>Concentration Nanodrop (ng/&#956;l)</th>
	<th>Ratio 260/280</th>
	<th>Ratio 260/230</th>
	<th>Concentration Picogreen</th>
	<th>Gel Validation</th>
	<th>Volume (&#956;l)</th>
</tr>
</thead>
<tbody>
	<c:forEach var="aliquot" items="${aliquots}">
	<tr>
		<td><u:aliquot-href u:aliquot="${aliquot}"/></td>
		<td>
			<input name="concNanoDrop[${aliquot.id}]" value="<c:out value="${aliquot.concNanoDrop}" escapeXml="true"/>"/>
		</td>
		<td>
			<input name="ratio260280[${aliquot.id}]" value="<c:out value="${aliquot.ratio260280}" escapeXml="true"/>"/>
		</td>
		<td>
			<input name="ratio260230[${aliquot.id}]" value="<c:out value="${aliquot.ratio260230}" escapeXml="true"/>"/>
		</td>
		<td>
			<input name="concPicoGreen[${aliquot.id}]" value="<c:out value="${aliquot.concPicoGreen}" escapeXml="true"/>"/>
		</td>
		<td>
		 <select id="t_gel" name="gel[${aliquot.id}]">
		 		<option value="" <c:if test="${empty aliquot.gel}"> selected='true' </c:if> >undefined</option>
		 		<option value="1" <c:if test="${aliquot.gel eq 1}"> selected='true' </c:if> >YES: validated</option>
		 		<option value="0" <c:if test="${aliquot.gel eq 0}"> selected='true' </c:if> >NO: not validated</option>
		 </select>
		</td>
		<td>
			<input name="volume[${aliquot.id}]" value="<c:out value="${aliquot.volume}" escapeXml="true"/>"/>
		</td>
	</tr>
	</c:forEach>
</tbody>
<tfoot>
	<input type="submit"/>
</tfoot>
</table>
</form>
</c:if>
<u:html-bottom/>